package com.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * (Order)表实体类
 *
 * @author makejava
 * @since 2020-11-21 10:31:05
 */
@Data
public class Order extends Model<Order> implements Serializable {

    private Integer id;
    //编号
    private String no;
    //用户表id
    private Integer userId;
    //商品数量
    private Integer num;
    //邮费
    private Double postage;
    //商品总价
    private Double totalPrice;
    //支付方式
    private String payType;
    //收货人姓名
    private String receiptName;
    //收货人电话
    private String receiptPhone;
    //收货地址
    private String receiptAddress;
    //发货时间
    private Date dliveryTime;
    //收货时间
    private Date receiptTime;

    private Date createTime;

    private Date updateTime;

    private Integer createId;

    private Integer updateId;

    private String isDelete;
    //状态
    private String status;
    //备用1
    private String remark;
    //备用2
    private Double discount;

    private Double actualPrice;

    private Integer version;

    //订单详情
    private List<OrderDetails> orderItemDtos;

    private Integer merchantId;

    @TableField(exist = false)
    private String key;
}
